cmake_minimum_required(VERSION 3.8)
project(test_app)

set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/include/CMakeModules)
set(Sophus_DIR "/home/jpx/Downloads/ORB_SLAM3/Thirdparty/Sophus/build/")


# Default to C++14
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)

if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
  add_compile_options(-Wall -Wextra -Wpedantic)
endif()

# find dependencies
find_package(ament_cmake REQUIRED)
find_package(rclcpp REQUIRED)
find_package(std_msgs REQUIRED)
find_package(Eigen3 REQUIRED)

include_directories(
  include
  "/usr/include/eigen3"
)

link_directories(
  include
)

add_executable(test_yaml 
  src/test_yaml.cpp
)
ament_target_dependencies(test_yaml rclcpp std_msgs)

install(
  TARGETS test_yaml
  DESTINATION lib/${PROJECT_NAME}/
)

install(
  DIRECTORY launch config
  DESTINATION share/${PROJECT_NAME}/
)

ament_package()
